﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using AlexandriaPressUserBusinessLayer;

namespace AlexandriaPressWebsite.MasterPages
{
    public partial class WebForm5 : System.Web.UI.Page
    {
        protected void Page_Init(object sender, EventArgs e)
        {
            if (HttpContext.Current.User.Identity.Name != "")
            {
                UserBusinsessLayer business = new UserBusinsessLayer();
                string _UserType = business.getUserType(HttpContext.Current.User.Identity.Name);
                if (_UserType == "Type_ProofReader")
                {

                }
                else
                {
                    Response.Redirect("~/MasterPages/ErrorPage.aspx");
                }
            }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
        }

        protected void continueButton_Click(object sender, EventArgs e)
        {
            Response.Redirect("~/MasterPages/ProofreaderPages/ProofReaderConsole.aspx");
        }
    }
}
